
package com.pro.api;

import com.pro.dto.Dto;
import com.pro.service.MenuService;

import com.pro.util.dtoUtil.DtoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("menu")
public class MenuController {
    @Autowired
    private MenuService menuService;

    //查询所有
    @GetMapping("selAll")
    public Dto selAll() {
        return DtoUtil.returnSuccess(this.menuService.selAll());
    }
}
